const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const { merge } = require('webpack-merge');
const commonConfig = require('./webpack.comm.config');

module.exports = merge(commonConfig, {
  mode: 'production',
  output: {
    clean: true, // 在生成文件之前清空打包的目录
  },
  plugins: [
    new CleanWebpackPlugin(),
  ]
})